var pageData = {};
// ++i在赋值前增加，而i++在赋值后增加
for (var i = 1; i < 5; ++i) {
    (function(index) {
        pageData[`slider${index}change`] = function(e) {
            console.log(`slider${index}发生change事件, 携带值为`, e.detail.value);
        };
    })(i);
}
Page(
    Object.assign({
            data: {},

            onReady() {
                console.log(pageData);
            },

            onSliderChanging(e) {
                console.log(e.type, e.detail.value);
            },
        },
        pageData
    )
);